import { View } from '@tarojs/components';
import { AtList, AtListItem } from 'taro-ui';
import './index.scss';

export default function ({ orderDetail }) {
  const { getDate, userName, userPhone, orderType } = orderDetail;
  return (
    <View className="order-user section-block">
      <AtList>
        <AtListItem
          title={orderType === 1 ? '提货人' : '预约人'}
          extraText={userName + ' ' + userPhone}
        />
        <AtListItem title={orderType === 1 ? '提货时间' : '预约时间'} extraText={getDate} />
      </AtList>
    </View>
  );
}
